<?php

namespace App\Repository\RepositoryInterface;

interface LotteryInterface
{
    /**
     * @return mixed
     * 查询参与抽奖商品
     */
    public function lotteryGoods();

    /**
     * @param $user_id
     * @param $store_name
     * @param $price
     * @return mixed
     * 抽奖记录
     */
    public function drawRecords($user_id,$user_name,$store_name,$price);

    /**
     * @param $goods_id
     * @return mixed
     * 检索商品
     */
    public function searchGoods($goods_id);

    /**
     * @param $user_id
     * @return mixed
     * 抽奖记录查询
     */
    public function drawRecordsQuery($user_id);

    /**
     * @param $user_id
     * @return mixed
     * 查询中奖用户
     */
    public function searchUser($user_id);

    /**
     * @param $draw_records_id
     * @return mixed
     * 奖品删除
     */
    public function drawRecordsDel($draw_records_id);
}
